.class public Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;
.super Lcom/esfile/screen/recorder/base/BaseFragment;
.source "LocalMusicFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;
    }
.end annotation


# instance fields
.field protected c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;"
        }
    .end annotation
.end field

.field private d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

.field private e:Landroidx/recyclerview/widget/RecyclerView;

.field private f:Landroid/view/ViewStub;

.field private g:Z

.field private h:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

.field private i:Landroidx/appcompat/widget/ListPopupWindow;

.field private j:Landroid/view/View;

.field private k:Landroid/widget/TextView;

.field private l:Landroid/view/View;

.field private m:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

.field private n:Ljava/lang/String;

.field private o:Z

.field private p:Z

.field private q:Z

.field private r:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g:Z

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->o:Z

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->p:Z

    .line 5
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->q:Z

    .line 6
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$a;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->r:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;)Landroid/content/Intent;
    .locals 2
    .param p1    # Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 29
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 30
    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 31
    new-instance p1, Landroid/content/Intent;

    invoke-direct {p1}, Landroid/content/Intent;-><init>()V

    const-string v1, "SELECTED_MEDIAS"

    .line 32
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    return-object p1
.end method

.method private a(Landroid/content/Context;)Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
    .locals 1

    .line 20
    new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-direct {v0, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method private a(Landroid/database/Cursor;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;
    .locals 11
    .param p1    # Landroid/database/Cursor;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 39
    invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "_data"

    .line 40
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "_display_name"

    .line 41
    invoke-interface {p1, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v1

    invoke-interface {p1, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "duration"

    .line 42
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v2

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    const-string v4, "album_id"

    .line 43
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v4

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v4

    const-string v5, "_id"

    .line 44
    invoke-interface {p1, v5}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v5

    invoke-interface {p1, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v5

    const-string v6, "date_added"

    .line 45
    invoke-interface {p1, v6}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v6

    invoke-interface {p1, v6}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    const-string v8, "_size"

    .line 46
    invoke-interface {p1, v8}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v8

    invoke-interface {p1, v8}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v8

    .line 47
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "audio info ,duration="

    invoke-virtual {p1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v10, ",size="

    invoke-virtual {p1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v10, ",path="

    invoke-virtual {p1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v10, "LocalMusicFragment"

    invoke-static {v10, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 48
    new-instance p1, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    invoke-direct {p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;-><init>()V

    .line 49
    invoke-virtual {p1, v5}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(I)V

    .line 50
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(Ljava/lang/String;)V

    .line 51
    invoke-virtual {p1, v6, v7}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(J)V

    .line 52
    sget-object v0, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->AUDIO:Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->a(Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;)V

    .line 53
    invoke-virtual {p1, v8, v9}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->b(J)V

    .line 54
    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->b(Ljava/lang/String;)V

    .line 55
    invoke-virtual {p1, v2, v3}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->c(J)V

    .line 56
    invoke-virtual {p1, v4}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->c(I)V

    const/4 v0, 0x1

    .line 57
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->a(Z)V

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method private a(Landroid/net/Uri;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;
    .locals 9
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    const/4 v0, 0x0

    .line 33
    :try_start_0
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v3, p1

    .line 34
    invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 35
    :try_start_1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Landroid/database/Cursor;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    move-result-object v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p1, :cond_0

    .line 36
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    :cond_0
    return-object v0

    :catchall_0
    move-exception v0

    goto :goto_0

    :catch_0
    nop

    goto :goto_1

    :catchall_1
    move-exception p1

    move-object v8, v0

    move-object v0, p1

    move-object p1, v8

    :goto_0
    if-eqz p1, :cond_1

    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    .line 37
    :cond_1
    throw v0

    :catch_1
    move-object p1, v0

    :goto_1
    if-eqz p1, :cond_2

    .line 38
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    :cond_2
    return-object v0
.end method

.method public static a(Landroid/os/Bundle;)Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;
    .locals 1

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;-><init>()V

    if-eqz p0, :cond_0

    .line 4
    invoke-virtual {v0, p0}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V

    :cond_0
    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->n:Ljava/lang/String;

    return-object p1
.end method

.method private a(Landroid/content/Intent;)V
    .locals 2

    .line 25
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_2

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x11

    if-lt v0, v1, :cond_0

    .line 26
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->isDestroyed()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    if-eqz p1, :cond_1

    .line 27
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1, p1}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 28
    :cond_1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    :cond_2
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->o:Z

    return p0
.end method

.method private b(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;
    .locals 9
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    const/4 v0, 0x0

    .line 4
    :try_start_0
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    .line 5
    sget-object v3, Landroid/provider/MediaStore$Audio$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    const/4 v4, 0x0

    const-string v5, "_data=?"

    const/4 v1, 0x1

    new-array v6, v1, [Ljava/lang/String;

    const/4 v1, 0x0

    aput-object p1, v6, v1

    const/4 v7, 0x0

    invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 6
    :try_start_1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Landroid/database/Cursor;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    move-result-object v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p1, :cond_0

    .line 7
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    :cond_0
    return-object v0

    :catchall_0
    move-exception v0

    goto :goto_0

    :catch_0
    nop

    goto :goto_1

    :catchall_1
    move-exception p1

    move-object v8, v0

    move-object v0, p1

    move-object p1, v8

    :goto_0
    if-eqz p1, :cond_1

    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    .line 8
    :cond_1
    throw v0

    :catch_1
    move-object p1, v0

    :goto_1
    if-eqz p1, :cond_2

    .line 9
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    :cond_2
    return-object v0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->l()Z

    move-result p0

    return p0
.end method

.method private c(Ljava/lang/String;)Landroid/content/Intent;
    .locals 4

    .line 9
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 10
    sget p1, Les/z4;->durec_nonsupport_music:I

    invoke-static {p1}, Les/ec;->b(I)V

    return-object v1

    :cond_0
    const-string v0, "."

    .line 11
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    const/4 v3, -0x1

    if-ne v2, v3, :cond_1

    .line 12
    sget p1, Les/z4;->durec_nonsupport_music:I

    invoke-static {p1}, Les/ec;->b(I)V

    return-object v1

    .line 13
    :cond_1
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    .line 14
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 15
    sget p1, Les/z4;->durec_nonsupport_music:I

    invoke-static {p1}, Les/ec;->b(I)V

    return-object v1

    .line 16
    :cond_2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->b(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    move-result-object v0

    if-nez v0, :cond_3

    .line 17
    invoke-static {p1}, Les/rc;->a(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 18
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "audio uri="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, "LocalMusicFragment"

    invoke-static {v3, v2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Landroid/net/Uri;)Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    move-result-object v0

    :cond_3
    if-nez v0, :cond_4

    return-object v1

    .line 20
    :cond_4
    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/k;->b(Ljava/lang/String;)V

    .line 21
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;)Landroid/content/Intent;

    move-result-object p1

    return-object p1
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)Landroidx/appcompat/widget/ListPopupWindow;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    return-object p0
.end method

.method private c(Landroid/view/View;)V
    .locals 4

    .line 2
    sget v0, Les/x4;->durec_empty_message:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    .line 4
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_video_edit_no_find_music_layout:I

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 5
    invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 6
    sget v1, Les/u4;->durec_background:I

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 7
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/fragment/b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/b;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 8
    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->k:Landroid/widget/TextView;

    return-object p0
.end method

.method private d(Landroid/view/View;)V
    .locals 1

    .line 15
    sget v0, Les/x4;->dir_select_btn:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    const/4 v0, 0x0

    .line 16
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 17
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    sget v0, Les/x4;->file_dir:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->k:Landroid/widget/TextView;

    .line 18
    sget v0, Les/z4;->durec_all_music:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 19
    new-instance p1, Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-direct {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    const/4 v0, -0x1

    .line 20
    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setWidth(I)V

    .line 21
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setAnchorView(Landroid/view/View;)V

    .line 22
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->h:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 23
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setModal(Z)V

    .line 24
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v0, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 25
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    const/16 v0, 0x50

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setDropDownGravity(I)V

    .line 26
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$b;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 27
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 28
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/e;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/e;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V

    return-void
.end method

.method private d(Ljava/lang/String;)Z
    .locals 5

    const/16 v0, 0xa

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "aac"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const-string v1, "mp3"

    const/4 v3, 0x1

    aput-object v1, v0, v3

    const/4 v1, 0x2

    const-string v4, "mp4"

    aput-object v4, v0, v1

    const/4 v1, 0x3

    const-string v4, "m4a"

    aput-object v4, v0, v1

    const/4 v1, 0x4

    const-string v4, "3gp"

    aput-object v4, v0, v1

    const/4 v1, 0x5

    const-string v4, "wav"

    aput-object v4, v0, v1

    const/4 v1, 0x6

    const-string v4, "ogg"

    aput-object v4, v0, v1

    const/4 v1, 0x7

    const-string v4, "wma"

    aput-object v4, v0, v1

    const/16 v1, 0x8

    const-string v4, "webm"

    aput-object v4, v0, v1

    const/16 v1, 0x9

    const-string v4, "mkv"

    aput-object v4, v0, v1

    .line 29
    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    .line 30
    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    return v2

    :cond_0
    return v3
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    return-object p0
.end method

.method private f(Ljava/util/List;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;)V"
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 1
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    if-ge v1, v3, :cond_2

    .line 2
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 3
    invoke-virtual {v3}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v4

    if-eqz v4, :cond_1

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_1

    const/4 v4, 0x0

    .line 4
    :goto_1
    invoke-virtual {v3}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    if-ge v4, v5, :cond_0

    .line 5
    invoke-virtual {v3}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v5

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    invoke-virtual {v5, v2}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->d(I)V

    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    :cond_0
    add-int/lit8 v2, v2, 0x1

    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method

.method private g(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_0

    .line 1
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 2
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v1

    .line 4
    new-instance v2, Les/sa;

    invoke-direct {v2}, Les/sa;-><init>()V

    invoke-static {v1, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 5
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->a(Ljava/util/List;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method private g(Z)V
    .locals 2

    .line 6
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g:Z

    if-eqz p1, :cond_1

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f:Landroid/view/ViewStub;

    const/4 v0, 0x0

    if-nez p1, :cond_0

    .line 8
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 9
    sget v1, Les/x4;->durec_empty_view:I

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewStub;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f:Landroid/view/ViewStub;

    .line 10
    invoke-virtual {p1}, Landroid/view/ViewStub;->inflate()Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/ui/DuEmptyView;

    .line 11
    sget v1, Les/w4;->durec_no_music:I

    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/ui/DuEmptyView;->setIcon(I)V

    .line 12
    sget v1, Les/z4;->durec_no_available_music:I

    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/ui/DuEmptyView;->setMessage(I)V

    .line 13
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c(Landroid/view/View;)V

    .line 14
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f:Landroid/view/ViewStub;

    invoke-virtual {p1, v0}, Landroid/view/ViewStub;->setVisibility(I)V

    goto :goto_0

    .line 15
    :cond_0
    invoke-virtual {p1, v0}, Landroid/view/ViewStub;->setVisibility(I)V

    goto :goto_0

    .line 16
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f:Landroid/view/ViewStub;

    if-eqz p1, :cond_2

    const/16 v0, 0x8

    .line 17
    invoke-virtual {p1, v0}, Landroid/view/ViewStub;->setVisibility(I)V

    :cond_2
    :goto_0
    return-void
.end method

.method private l()Z
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/LinearLayoutManager;

    .line 3
    invoke-virtual {v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastVisibleItemPosition()I

    move-result v2

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getItemCount()I

    move-result v0

    const/4 v3, 0x1

    sub-int/2addr v0, v3

    if-ne v2, v0, :cond_1

    return v3

    :cond_1
    return v1
.end method

.method private m()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/fragment/c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/c;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    invoke-static {v0, v1}, Les/c5;->a(Landroid/app/Activity;Les/c5$c;)V

    return-void
.end method

.method private q()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/fragment/d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/d;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    invoke-static {v0, v1}, Les/za;->a(Landroidx/fragment/app/FragmentActivity;Les/za$b;)V

    :cond_0
    return-void
.end method

.method private r()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->l()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->o:Z

    .line 3
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->l()V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->o:Z

    :goto_0
    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/view/View;)V
    .locals 0

    .line 21
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->m()V

    .line 22
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->k()V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;)V
    .locals 0

    .line 24
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->m:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

    return-void
.end method

.method public synthetic a(Ljava/lang/String;)V
    .locals 0

    .line 23
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Landroid/content/Intent;)V

    return-void
.end method

.method public synthetic a(Ljava/util/List;)V
    .locals 3

    .line 5
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->isAdded()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    if-eqz p1, :cond_1

    .line 6
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_1

    const/4 v1, 0x0

    .line 7
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g(Z)V

    .line 8
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g(Ljava/util/List;)V

    .line 9
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->clear()V

    .line 10
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f(Ljava/util/List;)V

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->d(I)V

    .line 13
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 14
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c:Ljava/util/List;

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d(Ljava/util/List;)V

    goto :goto_0

    .line 15
    :cond_1
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g(Z)V

    const/4 p1, 0x0

    .line 16
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d(Ljava/util/List;)V

    .line 17
    :goto_0
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->p:Z

    .line 18
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->q:Z

    if-eqz p1, :cond_2

    .line 19
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->r()V

    :cond_2
    return-void
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->m()V

    .line 3
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->k()V

    return-void
.end method

.method public d(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->h:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-virtual {v0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    .line 4
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 5
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->k:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 7
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->n:Ljava/lang/String;

    .line 8
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j()V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->k:Landroid/widget/TextView;

    sget v0, Les/z4;->durec_all_music:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 10
    sget p1, Les/z4;->durec_all_music:I

    invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->n:Ljava/lang/String;

    .line 11
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j()V

    .line 12
    :goto_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f()V

    goto :goto_1

    .line 13
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    if-eqz p1, :cond_2

    const/16 v0, 0x8

    .line 14
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :cond_2
    :goto_1
    return-void
.end method

.method public f()V
    .locals 4

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->h:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    if-nez v0, :cond_0

    return-void

    .line 9
    :cond_0
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->getCount()I

    move-result v0

    const/4 v1, 0x5

    if-ge v0, v1, :cond_1

    goto :goto_0

    :cond_1
    const/4 v0, 0x5

    .line 10
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    if-eqz v1, :cond_2

    .line 11
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/v4;->durec_picker_item_folder_height:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v2

    mul-int v0, v0, v2

    .line 12
    invoke-virtual {v1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setHeight(I)V

    :cond_2
    return-void
.end method

.method public f(Z)V
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->l:Landroid/view/View;

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    const/16 p1, 0x8

    .line 7
    :goto_0
    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method public g()Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;
    .locals 1

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    return-object v0
.end method

.method public synthetic i()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f(Z)V

    return-void
.end method

.method public j()V
    .locals 3

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.duapps.recorder.action.SET_TITLE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->n:Ljava/lang/String;

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->isAdded()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    sget v1, Les/z4;->durec_add_music:I

    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_0
    const-string v2, "android.intent.extra.TITLE"

    .line 5
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 6
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object v1

    .line 7
    invoke-virtual {v1, v0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->sendBroadcast(Landroid/content/Intent;)Z

    return-void
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    const-string p1, "LocalMusicFragment"

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 1
    invoke-virtual {p3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p2

    .line 2
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "uri="

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-static {p1, p3}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    invoke-static {p3, p2}, Les/rc;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object p2

    .line 4
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "path="

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-static {p1, p3}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object p1

    goto :goto_0

    .line 6
    :cond_0
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "result code="

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 7
    :goto_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Landroid/content/Intent;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j:Landroid/view/View;

    if-ne p1, v0, :cond_1

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->isShowing()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->dismiss()V

    goto :goto_0

    .line 4
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    if-eqz p1, :cond_1

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-nez p1, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f()V

    const/4 p1, 0x1

    .line 6
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->f(Z)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->i:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->show()V

    :cond_1
    :goto_0
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 9

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseFragment;->onCreate(Landroid/os/Bundle;)V

    const/4 p1, 0x1

    .line 2
    invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->setRetainInstance(Z)V

    .line 3
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c:Ljava/util/List;

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->m:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

    new-instance v2, Lcom/esfile/screen/recorder/picture/picker/fragment/a;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/a;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;)V

    invoke-direct {v0, p1, v1, v2}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;-><init>(Ljava/util/List;Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;Landroid/view/View$OnClickListener;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    .line 5
    sget v7, Les/z4;->__picker_video_count:I

    .line 6
    sget v6, Les/z4;->__picker_video_one_count:I

    .line 7
    sget v8, Les/w4;->durec_dir_no_video:I

    .line 8
    new-instance p1, Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object v4

    iget-object v5, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->c:Ljava/util/List;

    move-object v3, p1

    invoke-direct/range {v3 .. v8}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;-><init>(Landroid/content/Context;Ljava/util/List;III)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->h:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->q()V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .param p1    # Landroid/view/LayoutInflater;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/view/ViewGroup;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .param p3    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 1
    sget p3, Les/y4;->durec_video_edit_music_list_layout:I

    const/4 v0, 0x0

    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 2
    sget p2, Les/x4;->rv_list:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroidx/recyclerview/widget/RecyclerView;

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    .line 3
    sget p2, Les/x4;->shadow_cover:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->l:Landroid/view/View;

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;->getContext()Landroid/content/Context;

    move-result-object p3

    invoke-direct {p0, p3}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->a(Landroid/content/Context;)Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 5
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d:Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 6
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    new-instance p3, Landroidx/recyclerview/widget/DefaultItemAnimator;

    invoke-direct {p3}, Landroidx/recyclerview/widget/DefaultItemAnimator;-><init>()V

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setItemAnimator(Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;)V

    .line 7
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    .line 8
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    sget v1, Les/v4;->durec_picker_recyclerview_pb:I

    invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p3

    .line 9
    invoke-virtual {p2, v0, v0, v0, p3}, Landroid/view/ViewGroup;->setPadding(IIII)V

    .line 10
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->d(Landroid/view/View;)V

    .line 11
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->r:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->addOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V

    const/4 p2, 0x1

    .line 12
    iput-boolean p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->q:Z

    .line 13
    iget-boolean p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->p:Z

    if-eqz p2, :cond_0

    .line 14
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->r()V

    :cond_0
    return-object p1
.end method

.method public onDestroyView()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->e:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->r:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->removeOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V

    .line 2
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroyView()V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 0
    .param p1    # Landroid/view/View;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-super {p0, p1, p2}, Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 2
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g:Z

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g(Z)V

    return-void
.end method
